{template header_common}
<link rel="stylesheet" type="text/css" href="/static/css/member.css">
<div class="area userinfo">
	<div class="box box-avatar">
    	<div class="u-avatar"><img src="{echo avatar($G[uid]);}"></div>
        <div class="u-info">
        	<h3>$G[username]</h3>
            <div>更换头像</div>
            <p>等级:注册会员</p>
        </div>
    </div>
    
    <div class="box">
    	<h3 class="u-title">账户余额</h3>
        <div class="u-amount">¥{echo @number_format($wallet[balance], 2)}</div>
        <div class="u-status">充值</div>
    </div>
    
    <div class="box">
    	<h3 class="u-title">我的星币</h3>
        <div class="u-amount">{$score[score]}</div>
        <div class="u-status">获取星币</div>
    </div>
    
    <div class="box">
    	<h3 class="u-title">累计分红</h3>
        <div class="u-amount">¥{echo @number_format($wallet[total_back], 2)}</div>
        <div class="u-status">分红记录</div>
    </div>
    
    <div class="box" style="border:none;"><a href="" class="btn-sign">签到</a></div>
</div>

<div class="blank"></div>
<div class="area">
	<div class="leftNav">
    	<ul class="menu">
        	<li><a href="" class="cur">个人中心</a></li>
            <li><a href="/?m=$G[m]&c=order">全部订单</a></li>
            <li><a href="/?m=$G[m]&c=order">进入排队返现</a></li>
            <li><a href="/?m=$G[m]&c=fan">我的返现</a></li>
            <li><a href="/?m=$G[m]&c=score">积分兑换</a></li>
            <li><a href="/?m=$G[m]&c=profile">修改资料</a></li>
            <li><a href="/?m=$G[m]&c=bind">账户绑定</a></li>
            <li><a href="/?m=$G[m]&c=safe">账号安全</a></li>
        </ul>
    </div>
    
    <div class="mainFrame">
    	<p class="ptips">亲！您今天还没有签到哦！签到可获得10积分，累积签到或更多积分。</p>
        <p class="ptips">亲！您当前的可用余额为1500！可立即提现</p>
        <div class="blank"></div>
        <h3 class="htitle">网站公告</h3>
        {eval $gonggao=post_get_list(array('catid'=>729),10)}
        {if $gonggao}
        <ul class="noticelist">
        	
            {loop $gonggao $glist}
        	<li><span>{echo @data('Y-m-d', $glist[pubtime])}</span>
            <a href="/?m=post&c=detail&id=$glist[id]" target="_blank">{$glist[title]}</a></li>
            {/loop}
        </ul>
        {else}
        <div style="text-align:center; padding:10px; font-size:16px;">当前还没有公告!</div>
        {/if}
        <div class="blank"></div>
        <div class="mytab" id="mytab">
        	<div class="item cur"><a href="javascript:;">我的返现记录</a></div>
            <div class="item"><a href="javascript:;">我的邀请记录</a></div>
            <div class="item"><a href="javascript:;">邀请好友赚钱</a></div>
            <div class="item"><a href="javascript:;">我的提现记录</a></div>
        </div>
        
        <table width="100%" cellspacing="1" cellpadding="0" width="100%" class="table-record">
        	<tr>
            	<td width="140">返利时间</td>
                <td width="160">返利名称</td>
                <td>返利明细</td>
                <td width="80">返利金额</td>
                <td width="50" class="center">状态</td>
            </tr>
            <tr>
            	<td>2016-06-01 10:40</td>
                <td>注册返利</td>
                <td>注册赠送：金额1.00,积分10</td>
                <td>1.00</td>
                <td>已返</td>
            </tr>
            <tr>
            	<td>2016-06-01 10:40</td>
                <td>注册返利</td>
                <td>注册赠送：金额1.00,积分10</td>
                <td>1.00</td>
                <td>已返</td>
            </tr>
            <tr>
            	<td>2016-06-01 10:40</td>
                <td>注册返利</td>
                <td>注册赠送：金额1.00,积分10</td>
                <td>1.00</td>
                <td>已返</td>
            </tr>
        </table>
    </div>

<script type="text/javascript">
$("#mytab .item").click(function(e) {
    $(this).addClass('cur').siblings().removeClass("cur");
});
</script>
{template footer_member}